package com.itheima.myststem;

/**
 * @Author 王加鑫
 * @Date 2021/5/10 9:50
 * @Version 1.0
 */
public class SystemTest {
    public static void main(String[] args) {
        int[] num1 = {1,2,3,4,5,6};
        int[] num2 = new int[10];
        System.arraycopy(num1,num1.length-2,num2,num2.length-10,2);
        for (int i = 0; i < num2.length; i++) {
            System.out.println(num2[i]);
        }
    }
}
